const router = require('koa-router')()
const typeApiCon = require('../controller/typeApiController')
const tokenCheck = require('../middlewares/auth')




router.prefix('/apis/type')

router.all('*',tokenCheck.tokenCheck)

router.get('/types',typeApiCon.getAllTypes)

router.post('/setType',typeApiCon.addType)

router.delete('/setType/:id',typeApiCon.deleteType)

router.put('/setType',typeApiCon.updateType)

module.exports = router